package test1;

import org.springframework.jdbc.core.JdbcTemplate;


public class TestJDBCTemplate {
    public static void main(String[] args) {
        //1、导入5个Jar包
        //2、新建对象
        JdbcTemplate jdbc = new JdbcTemplate(JDBCUtil.getDatasource());
        //3、编写sql语句
        String  sql = "update money set password = 1234567 where name=?";
        //4、执行修改语句
        int count = jdbc.update(sql, "王华");
        //5、打印输出
        System.out.println(count);

    }
}
